﻿using System.ComponentModel.DataAnnotations;
using YNTK.Dependency;
using YNTK.System.Entitys.Dto.Common;

namespace YNTK.VisitorsRecord.Entitys
{
    /// <summary>
    ///  添加访客记录请求模型
    /// </summary>
    [SuppressSniffer]
    public class AddVisitorsRecordRequestModel
    {
        /// <summary>
        /// 访客分类id
        /// </summary>
        [Required(ErrorMessage = "访客分类标识不能为空")]
        public string classifyId { get; set; }

        /// <summary>
        /// 标题
        /// </summary>
        [Required(ErrorMessage = "标题不能为空")]
        public string title { get; set; }

        /// <summary>
        /// 内容
        /// </summary>
        public string content { get; set; }

        /// <summary>
        /// 排序码
        /// </summary>
        public long? sortCode { get; set; }

        /// <summary>
        /// 相关附件数据
        /// </summary>
        public List<FileRequestModel> fileData { get; set; }
    }
}
